FROM openjdk:8-alpine
 
RUN echo "安装office"
RUN apk update 
RUN apk add wget unzip fontconfig libreoffice
RUN wget -O ipa-font.zip 'https://osdn.jp/frs/redir.php?m=iij&f=%2Fipafonts%2F51868%2FIPAfont00303.zip'
RUN mkdir /root/.fonts \
&& unzip ipa-font.zip -d /root/.fonts \
&& rm -fr ipa-font.zip
RUN fc-cache -fv
RUN echo "安装office结束"

#java的目录 - 在docker-compose中挂载
WORKDIR /home/site/api 
#把容器的8085端口映射到外部
EXPOSE 8085

CMD ["java","-jar","lms.jar"]
